<template>
  <div class="app">
    <router-view></router-view>
    
    <div class="footer-info">
      <p>
        © 2024 
        <router-link to="/about" class="author-link">凤果子</router-link> · 
        <router-link to="/about" class="author-link">关于作者</router-link> · 
        帮助开发者提高代码可读性
      </p>
    </div>
  </div>
</template>

<script>
export default {
  name: 'App'
}
</script>

<style>
/* 保留全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(135deg, #f6f8ff 0%, #e9ecff 100%);
  color: #1f2937;
  line-height: 1.5;
  min-height: 100vh;
}

/* 标题样式 */
h1 {
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: clamp(2rem, 5vw, 2.5rem);
  background: linear-gradient(45deg, #4f46e5, #ec4899, #3b82f6);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientText 6s ease infinite;
  padding-bottom: 1rem;
  position: relative;
}

h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #4f46e5, #ec4899);
  border-radius: 2px;
  animation: borderPulse 2s ease-in-out infinite;
}

@keyframes gradientText {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes borderPulse {
  0% { width: 60px; opacity: 1; }
  50% { width: 100px; opacity: 0.6; }
  100% { width: 60px; opacity: 1; }
}

/* 底部样式 */
.footer-info {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 100;
  text-align: center;
  font-size: 13px;
  color: #8590a6;
}

.author-link {
  color: #8590a6;
  text-decoration: none;
  transition: color 0.3s ease;
}

.author-link:hover {
  color: #76839b;
}

/* 移动端适配 */
@media (max-width: 640px) {
  h1 {
    margin-bottom: 2rem;
  }
  
  h1::after {
    width: 40px;
  }
  
  @keyframes borderPulse {
    0% { width: 40px; opacity: 1; }
    50% { width: 80px; opacity: 0.6; }
    100% { width: 40px; opacity: 1; }
  }
}

@media (max-width: 768px) {
  .footer-info {
    padding: 12px 0;
    font-size: 12px;
  }
}
</style>
